//
//  BCProjectDetailDataData.h
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/12/4.
//  Copyright © 2018 guoshikeji. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
/**
 "project_id": 1,
 "project_name": "景泰以太坊产业C区",
 "surplus": "1.2000000",
 "min_buy": "0.0120000",
 "max_buy": "1.0800000",
 "amount": "1.2000000",
 "repay": "6.00",
 "join_num": 0,
 "join_users": [],
 "sub_status": 1,
 "is_buy": 0,
 "sub_id": 1,
 "start_time": "2018-12-04 11:34:56",
 "end_time": "2018-12-05 16:22:56",
 "curr": "BTC",
 "balance": 0,
 "has_next_buy": 0,
 "next_id": 0,
 "is_next_buy": 0
 */
@interface BCProjectDetailDataData : NSObject

/**
 *"project_id": 1
 */
@property (nonatomic, copy) NSString *project_id;

/**
 *"project_name": "景泰以太坊产业C区"
 */
@property (nonatomic, copy) NSString *project_name;

/**
 *"surplus": "1.2000000" 剩余
 */
@property (nonatomic, copy) NSString *surplus;

/**
 *"min_buy": "0.0120000"
 */
@property (nonatomic, copy) NSString *min_buy;

/**
 *"max_buy": "1.0800000"
 */
@property (nonatomic, copy) NSString *max_buy;

/**
 *"amount": "1.2000000" 总
 */
@property (nonatomic, copy) NSString *amount;

/**
 *"repay": "6.00" 回报率
 */
@property (nonatomic, copy) NSString *repay;

/**
 *"join_num": 0
 */
@property (nonatomic, assign) NSInteger join_num;

/**
 *"join_users": []
 */
@property (nonatomic, copy) NSArray <NSString *> *join_users;

/**
 *"sub_status": 1
 * 状态 0 未开始 1 进行中 2 本轮筹集成功，等待下一轮筹集 3下一轮筹集成功，本轮正在结算发放 4 下一轮筹集失败 本轮正在结算发放 5 下一轮筹集成功，本轮发放完毕 6 下一轮筹集失败，本轮退还完毕 7 本轮募集失败
 */
@property (nonatomic, assign) BCProjectDetailStatus sub_status;

/**
 *"is_buy": 0 是否已经购买
 */
@property (nonatomic, assign) BOOL is_buy;

/**
 *"sub_id": 1
 */
@property (nonatomic, assign) long sub_id;

/**
 *"start_time": "2018-12-04 11:34:56"
 */
@property (nonatomic, copy) NSString *start_time;

/**
 *"end_time": "2018-12-05 16:22:56"
 */
@property (nonatomic, copy) NSString *end_time;

/**
 *"curr": "BTC"
 */
@property (nonatomic, copy) NSString *curr;

/**
 *"balance": 0
 */
@property (nonatomic, copy) NSString *balance;


/**
 *"has_next_buy": 0 是否可以预购
 */
@property (nonatomic, assign) BOOL has_next_buy;

/**
 *"next_id": 0
 */
@property (nonatomic, assign) long next_id;

/**
 *"is_next_buy": 0 是否已经预购
 */
@property (nonatomic, assign) BOOL is_next_buy;


/**
 *color 头部颜色
 */
@property (nonatomic, copy) NSString *color;

/**
 *history_url
 */
@property (nonatomic, copy) NSString *history_url;


/**
 *max_buy_num // 非svip最大购买次数 -1没有用户信息 0 是svip，无限制  >=1 非svip
 */
@property (nonatomic, assign) long max_buy_num;

/**
 *user_buy_num // 当前用户购买次数 -1没有用户信息 0 无限制  >0&& >= max_buy_num 已经到达上限，禁止购买
 */
@property (nonatomic, assign) long user_buy_num;

@end

NS_ASSUME_NONNULL_END
